home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1233 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  3.9 KB

  1. Path: nic.umass.edu!shark10!yang
  2. From: yang@math.umass.edu (Huayong Yang)
  3. Newsgroups: misc.books.technical,comp.lang.c++
  4. Subject: Review: STL Tutorial and Reference Guide
  5. Date: 10 Jan 1996 00:23:01 GMT
  6. Organization: UMass/Amherst Dept Math & Stats
  7. Message-ID: <4cv0t5$eji@nic.umass.edu>
  8. NNTP-Posting-Host: shark10.math.umass.edu
  9. X-Newsreader: Tin 1.1 PL362948
  10.  
  11.  
  12. Title: STL Tutorial and Reference Guide
  13.        -- C++ Programming with the Standard Template Library
  14. Author(s): David R. Musser, Atul Saini
  15. Publisher: Addison-Wesley Publishing Company, (800) 822-6339
  16. Contact: Chris Guzikowski, (617) 944-3700 Ext. 2714, chrisgu@aw.com
  17. Pages: 432
  18. Price: $38.68 (hardcover)
  19. ISBN: 0-201-63398-1
  20.  
  21. As Stepanov and Lee's Stand Template Library (STL) is incorporated into
  22. ANSI/ISO C++ standard, anyone who is serious about C++ must be eager to
  23. learn what it is all about. This book provides an oppotunity for them.
  24.  
  25. The book has three parts: part I is "an Tutorial Introduction to STL",
  26. illustrating major STL components such as iterators, function objects,
  27. generic algorithms, and so on with many short examples; part II
  28. provides several much longer examples where many STL features are put
  29. together in use; part III is a STL reference containing some
  30. information not found in part I (e.g., in Generic Algorithm section,
  31. each algorithm entry consists of "prototype", "description", and "time
  32. complexity".)
  33.  
  34. This is what I did with the book so far: as I already learned a few
  35. things about STL from an online document dated back to 1994, I just
  36. browsed part I for anything that didn't look familiar to me. For that
  37. part I found the examples helpful.
  38.  
  39. Then I proceeded to part II. Those examples are not very hard, but they
  40. are not trivial either (of course, this is a subjective judgment.)
  41. Each section deals with one problem, starting with the general idea to
  42. solve the problem, followed by the complete code, and the part-by-part
  43. explanations of the code. I found the explanations adequate, if not
  44. abundant. From time to time, I had to turn to part I or III to
  45. understand some algorithms, but that was expected, given the way I read
  46. the book. The book is not to blame. If one want to know what programs
  47. using STL look like, read these examples! Along the way the authors
  48. also located a compiler bug, so I assume the code is reliable, although
  49. I don't have the resource to run through them right now. I was glad
  50. that the authors included a section addressing the issue of combining
  51. OOP and STL, where they enhanced Stroustrup's drawing example with STL.
  52.  
  53. I didn't really read the part III (who would?), except looking up
  54. information on some algorithms while reading part II. The reference is
  55. organized in a way similar to part I, but the lack of cross-reference
  56. got me into trouble once. In the section on sort() algorithms, one is
  57. given two sort()'s (besides others): one takes a compare function
  58. object as the third parameter and the other does not.  What is the
  59. difference? This section says nothing about it. It turned out the
  60. information was located in the "supersection" , so to speak, titled
  61. "sort-related algorithms". Since this is a reference, it would be nice
  62. if one can pick up the relevant information without reading the whole
  63. thing sequentially, I think. Another problem I found is that the page
  64. number of reference on bind1st and bind2nd is missing in the index. It
  65. could be an isolated problem, though.
  66.  
  67. The typesetting leaves something to desire. Maybe it is just a personal
  68. taste, but I prefer the typesetting in TCP/IP Illustrated, a book from
  69. the same series, where code listings have a distinct look from the
  70. text. The book under review would look better if the code was printed
  71. in a smaller font, I think.
  72.  
  73. Overall, it is a good book for anyone to get started on the subject.
  74. The authors have accomplished what the titles says, that is, a tutorial
  75. and reference guide on STL.
  76.  
  77.  
  78.  
  79. --
  80. Huayong
  81.  
  82. WWW home pages:                           Email:
  83. http://www.math.umass.edu/~yang           yang@math.umass.edu
  84.